package www.lagou.entity;

import java.util.Date;

/**
 * 电话类
 *     pname VARCHAR(20)
 *     price DOUBLE
 *     prodate DATE
 *     color VARCHAR(20)
 */
public class Phone {
    private String pname;
    private String price;
    private Date  prodate;
    private String color;

    public Phone() {
    }

    public Phone(String pname, String price, Date prodate, String color) {
        this.pname = pname;
        this.price = price;
        this.prodate = prodate;
        this.color = color;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Date getProdate() {
        return prodate;
    }

    public void setProdate(Date prodate) {
        this.prodate = prodate;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "Phone{" +
                "pname='" + pname + '\'' +
                ", price='" + price + '\'' +
                ", prodate=" + prodate +
                ", color='" + color + '\'' +
                '}';
    }
}
